<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::CacheMap&lt; T1, T2 &gt;::MapValue结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="classdrogon_1_1CacheMap.html">CacheMap</a></li><li class="navelem"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html">MapValue</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="structdrogon_1_1CacheMap_1_1MapValue-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::CacheMap&lt; T1, T2 &gt;::MapValue结构体 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="CacheMap_8h_source.html">CacheMap.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab5d66ebec04f02facb2786e01c45f32e" id="r_ab5d66ebec04f02facb2786e01c45f32e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#ab5d66ebec04f02facb2786e01c45f32e">MapValue</a> (const T2 &amp;value, size_t timeout, std::function&lt; void()&gt; &amp;&amp;callback)</td></tr>
<tr class="separator:ab5d66ebec04f02facb2786e01c45f32e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7f684fc4762286a15b3eecd590410a3" id="r_ae7f684fc4762286a15b3eecd590410a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#ae7f684fc4762286a15b3eecd590410a3">MapValue</a> (T2 &amp;&amp;value, size_t timeout, std::function&lt; void()&gt; &amp;&amp;callback)</td></tr>
<tr class="separator:ae7f684fc4762286a15b3eecd590410a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43c0adf8239dab735727af0f02850d5b" id="r_a43c0adf8239dab735727af0f02850d5b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#a43c0adf8239dab735727af0f02850d5b">MapValue</a> (T2 &amp;&amp;value, size_t timeout)</td></tr>
<tr class="separator:a43c0adf8239dab735727af0f02850d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe31e724f544ff86eea87e1290fb442c" id="r_afe31e724f544ff86eea87e1290fb442c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#afe31e724f544ff86eea87e1290fb442c">MapValue</a> (const T2 &amp;value, size_t timeout)</td></tr>
<tr class="separator:afe31e724f544ff86eea87e1290fb442c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af99a9b1767e52d0cfa341420a46cccf2" id="r_af99a9b1767e52d0cfa341420a46cccf2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#af99a9b1767e52d0cfa341420a46cccf2">MapValue</a> (T2 &amp;&amp;value)</td></tr>
<tr class="separator:af99a9b1767e52d0cfa341420a46cccf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac20837f0626a132df5f3aa1127953f7c" id="r_ac20837f0626a132df5f3aa1127953f7c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#ac20837f0626a132df5f3aa1127953f7c">MapValue</a> (const T2 &amp;value)</td></tr>
<tr class="separator:ac20837f0626a132df5f3aa1127953f7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eefd4e62b4fc0e730cd93ec61c8691c" id="r_a9eefd4e62b4fc0e730cd93ec61c8691c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#a9eefd4e62b4fc0e730cd93ec61c8691c">MapValue</a> ()=default</td></tr>
<tr class="separator:a9eefd4e62b4fc0e730cd93ec61c8691c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a708030ef938c226859ca01953e8e0b76" id="r_a708030ef938c226859ca01953e8e0b76"><td class="memItemLeft" align="right" valign="top">T2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#a708030ef938c226859ca01953e8e0b76">value_</a></td></tr>
<tr class="separator:a708030ef938c226859ca01953e8e0b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e3bc1fb1c2b0c2e23abfeb373b7ab2c" id="r_a3e3bc1fb1c2b0c2e23abfeb373b7ab2c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#a3e3bc1fb1c2b0c2e23abfeb373b7ab2c">timeout_</a> {0}</td></tr>
<tr class="separator:a3e3bc1fb1c2b0c2e23abfeb373b7ab2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a747afd050b6d648b247f53a485a17026" id="r_a747afd050b6d648b247f53a485a17026"><td class="memItemLeft" align="right" valign="top">std::function&lt; void()&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#a747afd050b6d648b247f53a485a17026">timeoutCallback_</a></td></tr>
<tr class="separator:a747afd050b6d648b247f53a485a17026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa27c15658aecbe26508d012f1fc7a300" id="r_aa27c15658aecbe26508d012f1fc7a300"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacedrogon.html#a02f3f4b92fea1cbde55e1f30c476ae9e">WeakCallbackEntryPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdrogon_1_1CacheMap_1_1MapValue.html#aa27c15658aecbe26508d012f1fc7a300">weakEntryPtr_</a></td></tr>
<tr class="separator:aa27c15658aecbe26508d012f1fc7a300"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab5d66ebec04f02facb2786e01c45f32e" name="ab5d66ebec04f02facb2786e01c45f32e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5d66ebec04f02facb2786e01c45f32e">&#9670;&#160;</a></span>MapValue() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">const T2 &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>timeout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; void()&gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae7f684fc4762286a15b3eecd590410a3" name="ae7f684fc4762286a15b3eecd590410a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7f684fc4762286a15b3eecd590410a3">&#9670;&#160;</a></span>MapValue() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">T2 &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>timeout</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; void()&gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a43c0adf8239dab735727af0f02850d5b" name="a43c0adf8239dab735727af0f02850d5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43c0adf8239dab735727af0f02850d5b">&#9670;&#160;</a></span>MapValue() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">T2 &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="afe31e724f544ff86eea87e1290fb442c" name="afe31e724f544ff86eea87e1290fb442c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe31e724f544ff86eea87e1290fb442c">&#9670;&#160;</a></span>MapValue() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">const T2 &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af99a9b1767e52d0cfa341420a46cccf2" name="af99a9b1767e52d0cfa341420a46cccf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af99a9b1767e52d0cfa341420a46cccf2">&#9670;&#160;</a></span>MapValue() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">T2 &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac20837f0626a132df5f3aa1127953f7c" name="ac20837f0626a132df5f3aa1127953f7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac20837f0626a132df5f3aa1127953f7c">&#9670;&#160;</a></span>MapValue() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramtype">const T2 &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9eefd4e62b4fc0e730cd93ec61c8691c" name="a9eefd4e62b4fc0e730cd93ec61c8691c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9eefd4e62b4fc0e730cd93ec61c8691c">&#9670;&#160;</a></span>MapValue() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::MapValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a3e3bc1fb1c2b0c2e23abfeb373b7ab2c" name="a3e3bc1fb1c2b0c2e23abfeb373b7ab2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e3bc1fb1c2b0c2e23abfeb373b7ab2c">&#9670;&#160;</a></span>timeout_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::timeout_ {0}</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a747afd050b6d648b247f53a485a17026" name="a747afd050b6d648b247f53a485a17026"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a747afd050b6d648b247f53a485a17026">&#9670;&#160;</a></span>timeoutCallback_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::function&lt;void()&gt; <a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::timeoutCallback_</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a708030ef938c226859ca01953e8e0b76" name="a708030ef938c226859ca01953e8e0b76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a708030ef938c226859ca01953e8e0b76">&#9670;&#160;</a></span>value_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T2 <a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::value_</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa27c15658aecbe26508d012f1fc7a300" name="aa27c15658aecbe26508d012f1fc7a300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa27c15658aecbe26508d012f1fc7a300">&#9670;&#160;</a></span>weakEntryPtr_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T1 , typename T2 &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacedrogon.html#a02f3f4b92fea1cbde55e1f30c476ae9e">WeakCallbackEntryPtr</a> <a class="el" href="classdrogon_1_1CacheMap.html">drogon::CacheMap</a>&lt; T1, T2 &gt;::MapValue::weakEntryPtr_</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li><a class="el" href="CacheMap_8h_source.html">CacheMap.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
